package com.gitee.chenyaohua.dto;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementWrapper;
import java.util.List;

@XmlAccessorType(value = XmlAccessType.FIELD)
public class Connection  {

    /**
     * 驱动类名
     */
    @XmlAttribute(name = "driverClass")
    private String driverClass;
    /**
     * 用户名
     */
    @XmlAttribute(name = "username")
    private String username;
    /**
     * 数据库连接
     */
    @XmlAttribute(name = "url")
    private String jdbcUrl;
    /**
     * 数据库密码
     */

    @XmlAttribute(name = "password")
    private String password;

    @XmlElementWrapper(name = "tables")
    private List<Table> table;

    public String getDriverClass() {
        return driverClass;
    }

    public void setDriverClass(String driverClass) {
        this.driverClass = driverClass;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getJdbcUrl() {
        return jdbcUrl;
    }

    public void setJdbcUrl(String jdbcUrl) {
        this.jdbcUrl = jdbcUrl;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<Table> getTable() {
        return table;
    }

    public void setTable(List<Table> table) {
        this.table = table;
    }
}
